package com.gl.pojo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.gl.father.BasePojo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
 *	商品信息类 
 * @author FengLong
 */
@JsonIgnoreProperties(ignoreUnknown=true) 
//表示JSON转化时忽略未知属性
@Data
@EqualsAndHashCode(callSuper=false)
@ToString
@Accessors(chain=true)
public class Product extends BasePojo {
	private static final long serialVersionUID = -3878004999366895385L;
	/**商品id*/
	private Integer id;
	/**尺寸id*/
	private Integer sizeId;
	/**类型角色id*/
	private Integer typeId;
	/**版型菜单id*/
	private Integer styleId;
	/**商品名称*/
	private String name;
	/**是否删除*/
	private Byte isDelete = 0;//1.删除,0.未删除
	private Byte isBest = 1;//1.精品,0非精品
	private Byte isNew = 1;//1.新品,0.非新品
	private Byte isHot = 1;//1.热销,0.非热销
	/**商品图片名称*/
	private String imgName;
	/**缩略图名称*/
	private String thumbName;
	/**小缩略图名称*/
	private String smallthumbName;
	/**商品市场价格*/
	private double marketPrice;
	/**商品本店价格*/
	private double doorPrice;
	/**上架时间*/
	private Date addTime;
	/**更新时间*/
	private Date updateTime;
	/**商品描述*/
	private String productDesc;
	/**默认购买数量*/
	private Integer quantity=1;//页面中显示的默认数量是1,具体数据由用户填写
	/**商品库存数量*/
	private Integer houseNum;
	public Product() {
	}
	public Product(Integer id) {
		this.id = id;
	}
}
